package com.ficus.road.maintain.core.model.zh.xlj;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author xiawen yang
 * @date 2022/6/28 下午2:58
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class XljWarningFlow {
    private String warningId;

    private String xljId;

    private Date createTime;

    private String xljName;

    private Date sendTraPolice;

    private Date sendWatServ;

    private Date sendManCent;

    private Date messageTime;

    private List<XljStatus> xljStatusList;

    private List<XljWarningInfo> xljWarningInfoList;

    private Date syncTime;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class XljStatus {
        private Integer xljCondition;

        private Date condTime;

        private String condImgUrl;

        private Integer waterLevel;
    }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class XljWarningInfo {
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        private Date condTime;
        @JsonProperty("INFO")
        private String INFO;
        @JsonProperty("REMARK")
        private String REMARK;
    }
}
